/** 
 * 
 * @author geloin 
 * @date 2012-5-5 上午9:31:52 
 */
package com.controller;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.Util.RequestUtil;
import com.Util.ResponseUtil;
import com.alibaba.fastjson.JSON;
import com.entity.RequestBean;
import com.entity.SubGridBean;
import com.entity.TableDataBean;
import com.entity.TestBean;
import com.service.GetTimeService;



@Controller
public class UploadController {
	private String category;
	private String title;
	private String content;
	
	@RequestMapping("/publish")
	@ResponseBody
	public ModelAndView pulish(HttpServletRequest request){
		/*request.put("category", category);
		request.put("title", title);
		request.put("content", content);*/
		/*System.out.println("======"+JSON.toJSONString(request));*/
		
		String category = request.getParameter("category");
		String title = request.getParameter("title");
		String content = request.getParameter("content");
		ModelAndView mav = new ModelAndView();
		mav.setViewName("/ueditorShow");
		mav.addObject("category", category);
		mav.addObject("title", title);
		mav.addObject("content", content);
		return mav;
	}
	
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}


	
	
	
	
	
}